Skip to content

Add IAP and subscription pricing management#3

Merged
trmquang93 merged 3 commits intomainfrom
feature/iap-pricing
Mar 22, 2026
Merged

Add IAP and subscription pricing management#3
trmquang93 merged 3 commits intomainfrom
feature/iap-pricing

Conversation

@trmquang93
Copy link
Copy Markdown
Contributor

Summary

  • Add per-territory price viewing and editing for in-app purchases and subscriptions via the product edit modal
  • New backend pricing routes (server/routes/pricing.js) with ASC API integration for fetching and setting price points, including pagination support
  • New PricingPanel component with lazy-loaded price data, territory search, price point selection dropdowns, and batch save
  • Frontend API client functions for IAP and subscription price operations
  • Territory reference dataset (src/lib/territories.js) mapping all App Store territory codes to names and currencies
  • Fix modal positioning by using animation-fill-mode: backwards instead of both to prevent transforms from creating containing blocks

Test plan

  • Open an existing IAP product in the edit modal and verify the "Pricing" section appears
  • Expand the pricing panel and confirm current prices load for all territories
  • Search for a territory by name and verify filtering works
  • Change a price for a territory and verify the pending changes indicator updates
  • Click "Apply Changes" and verify prices are saved successfully
  • Repeat the above for a subscription product
  • Verify modals still position correctly (centered, no offset from transforms)

…g containing blocks

animation-fill-mode: both retains transform values after completion, which
creates a new CSS containing block on ancestor elements. This causes
position: fixed modals to be sized relative to page content instead of the
viewport. Changed fill-mode to backwards (styles only applied before
animation starts, removed after) and keyframe end values to transform: none.
Adds per-territory price viewing and editing for in-app purchases and
subscriptions. Includes backend pricing routes with ASC API integration,
a PricingPanel component embedded in the product edit modal, and a
territory reference dataset.
@trmquang93 trmquang93 merged commit d6aa2b4 into main Mar 22, 2026
@github-actions github-actions bot deleted the feature/iap-pricing branch March 22, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant